Skip to content

Increase copypastafication of cargo search#3684

Merged
bors merged 2 commits intorust-lang:masterfrom
casey:search-copy-pastafication
Feb 13, 2017
Merged

Increase copypastafication of cargo search#3684
bors merged 2 commits intorust-lang:masterfrom
casey:search-copy-pastafication

Conversation

@casey
Copy link
Contributor

@casey casey commented Feb 11, 2017

Formats the search results printed by cargo search so that they can be
copied directly into a Cargo.toml file.

I used ^, since I like being explicit, although that seems not to be the convention, so I'd be happy to remote it.

I also added a # in front of the description, so that that can be copy pastaed as well. I'm not super attached to this idea, but I think it's interesting, since it would serve to document what the various dependencies of a crate are for new contributors.

For example:

$ cargo search clap
clap = "^2.20.3"               # A simple to use, efficient, and full featured  Command Line ArgumentParser
please-clap = "^0.1.0"         # Pattern-match against Clap subcommands and arguments.
clapcomp = "^0.1.5"            # clap completion generator as command
clap-test = "^0.1.1"           # functions and macros to assist in testing clap
structopt = "^0.0.2"           # Parse command line argument by defining a struct.
capgun = "^0.1.1"              # fire when ready file watcher
structopt-derive = "^0.0.2"    # Parse command line argument by defining a struct, derive crate.
cargo-outdated = "^0.3.0"      # Cargo subcommand for displaying when dependencies are out of date
wesers = "^0.4.1"              # a simple HTTP/HTTPS server in Rust
cargo-arch = "^0.1.0"          # Rust Arch Linux package packer
... and 6 crates more (use --limit N to see more)

Formats the search results printed by `cargo search` so that they can be
copied directly into a `Cargo.toml` file.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@alexcrichton
Copy link
Member

Nice! Perhaps the ^ could be left out though since it's the default?

@casey
Copy link
Contributor Author

casey commented Feb 11, 2017

Removed the ^.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Feb 12, 2017

📌 Commit 94aa4ae has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Feb 12, 2017

⌛ Testing commit 94aa4ae with merge f4f264c...

@bors
Copy link
Contributor

bors commented Feb 12, 2017

💔 Test failed - status-appveyor

@casey
Copy link
Contributor Author

casey commented Feb 12, 2017

Looks like an unrelated failure. It failed to remove a directory:

     Running target\x86_64-pc-windows-msvc\release\deps\required_features-6778747566db0498.exe
running 15 tests
.F.............
failures:
---- bench_default_features stdout ----
	running `C:\projects\cargo\target\x86_64-pc-windows-msvc\release\cargo bench`
running `C:\projects\cargo\target\x86_64-pc-windows-msvc\release\cargo bench --no-default-features`
running `C:\projects\cargo\target\x86_64-pc-windows-msvc\release\cargo bench --bench=foo`
thread 'bench_default_features' panicked at 'failed to remove dir C:\projects\cargo\target\x86_64-pc-windows-msvc\cit\t0\foo\target\release\deps: The directory is not empty. (os error 145)', tests\cargotest\support\paths.rs:159
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
    bench_default_features
test result: FAILED. 14 passed; 1 failed; 0 ignored; 0 measured
error: test failed
Makefile:128: recipe for target 'test-unit-x86_64-pc-windows-ms

@alexcrichton
Copy link
Member

alexcrichton commented Feb 12, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 12, 2017

⌛ Testing commit 94aa4ae with merge 4662d86...

@bors
Copy link
Contributor

bors commented Feb 12, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member

alexcrichton commented Feb 12, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 12, 2017

⌛ Testing commit 94aa4ae with merge d26ae4d...

bors added a commit that referenced this pull request Feb 12, 2017
Increase copypastafication of `cargo search`

Formats the search results printed by `cargo search` so that they can be
copied directly into a `Cargo.toml` file.

I used `^`, since I like being explicit, although that seems not to be the convention, so I'd be happy to remote it.

I also added a `#` in front of the description, so that that can be copy pastaed as well. I'm not super attached to this idea, but I think it's interesting, since it would serve to document what the various dependencies of a crate are for new contributors.

For example:

```
$ cargo search clap
clap = "^2.20.3"               # A simple to use, efficient, and full featured  Command Line ArgumentParser
please-clap = "^0.1.0"         # Pattern-match against Clap subcommands and arguments.
clapcomp = "^0.1.5"            # clap completion generator as command
clap-test = "^0.1.1"           # functions and macros to assist in testing clap
structopt = "^0.0.2"           # Parse command line argument by defining a struct.
capgun = "^0.1.1"              # fire when ready file watcher
structopt-derive = "^0.0.2"    # Parse command line argument by defining a struct, derive crate.
cargo-outdated = "^0.3.0"      # Cargo subcommand for displaying when dependencies are out of date
wesers = "^0.4.1"              # a simple HTTP/HTTPS server in Rust
cargo-arch = "^0.1.0"          # Rust Arch Linux package packer
... and 6 crates more (use --limit N to see more)
```
@bors
Copy link
Contributor

bors commented Feb 12, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member

alexcrichton commented Feb 13, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 13, 2017

⌛ Testing commit 94aa4ae with merge 4a19374...

@bors
Copy link
Contributor

bors commented Feb 13, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member

alexcrichton commented Feb 13, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 13, 2017

⌛ Testing commit 94aa4ae with merge 76b32ab...

bors added a commit that referenced this pull request Feb 13, 2017
Increase copypastafication of `cargo search`

Formats the search results printed by `cargo search` so that they can be
copied directly into a `Cargo.toml` file.

I used `^`, since I like being explicit, although that seems not to be the convention, so I'd be happy to remote it.

I also added a `#` in front of the description, so that that can be copy pastaed as well. I'm not super attached to this idea, but I think it's interesting, since it would serve to document what the various dependencies of a crate are for new contributors.

For example:

```
$ cargo search clap
clap = "^2.20.3"               # A simple to use, efficient, and full featured  Command Line ArgumentParser
please-clap = "^0.1.0"         # Pattern-match against Clap subcommands and arguments.
clapcomp = "^0.1.5"            # clap completion generator as command
clap-test = "^0.1.1"           # functions and macros to assist in testing clap
structopt = "^0.0.2"           # Parse command line argument by defining a struct.
capgun = "^0.1.1"              # fire when ready file watcher
structopt-derive = "^0.0.2"    # Parse command line argument by defining a struct, derive crate.
cargo-outdated = "^0.3.0"      # Cargo subcommand for displaying when dependencies are out of date
wesers = "^0.4.1"              # a simple HTTP/HTTPS server in Rust
cargo-arch = "^0.1.0"          # Rust Arch Linux package packer
... and 6 crates more (use --limit N to see more)
```
@bors
Copy link
Contributor

bors commented Feb 13, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 76b32ab to master...

@bors bors merged commit 94aa4ae into rust-lang:master Feb 13, 2017
@ehuss ehuss added this to the 1.17.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants